package com.natalia.file.constants;

/**
 * @Author yang
 **/
public class FileConstants {

    protected FileConstants() {
    }


    public static final String DEFAULT_BUCKET = "default";

    public static final String UTF_8 = "UTF-8";

    public static final String EXTENSION_SEPARATOR = ".";

    public static final String PURE_DATE_PATTERN = "yyyyMMdd";

    public static final String CONTENT_TYPE ="Content-Type";

    public static final String CONTENT_DISPOSITION ="Content-Disposition";

    public static final String REDIS_LOCAL_FILE ="local-file:";

    public static String getContentType(String name){
        return  String.format("application/%s", name);
    }

    public static String getFileHeader(String name){
        return  String.format("attachment; filename=%s;target=_blank", name);
    }

}
